﻿using DataModels.Dto;
using DataModels.Entities.AuthCore;
using DataModels.Entities.Base;
using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Services.Sell
{
    public class SellService(SqlSugarClient db) : BaseService(db)
    {
        /// <summary>
        /// 获取房屋售卖顾问
        /// </summary>
        /// <returns></returns>
        public ResponseModel SellHouseCounselor()
        {
            var query = db.Queryable<User>()
                  .LeftJoin<Position>((u, p) => u.PositionUUID == p.UUID)
                  .Where((u, p) => p.Name == "市场营销").ToList();
            return Success(query);
        }
    }
}
